package com.jlcindia;

public class OOPTest39 {

	public static void main(String[] args) {
	DIn ref=new DIn();
	ref.showdata();
	ref.show();
	ref.process();ref.process("ok");
	}
}
interface AIn{
	String xy="AIn";
}
interface BIn extends AIn{
	int xy=10;
	void show();
	void process();
}
interface CIn extends AIn{
	boolean xy=true;
	void show();
	void process(String msg);
}
class DIn implements CIn,BIn{
	public void process(){
		System.out.println("\n process() from BIn");
	}
	public void show(){
		System.out.println("\n show() from BIn & CIn");
	}
	public void process(String msg){
		System.out.println("\n process(String) from CIn");
	}
	void showdata(){
		System.out.println("\n showdata()");
		//System.out.println(xy); ambiguity problem
		System.out.println(AIn.xy);
		System.out.println(BIn.xy);
		System.out.println(CIn.xy);
	}
}

